//
//  QZCustomTabBar.h
//  shortvideoplay
//
//  Created by tikeios_002 on 2024/6/18.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface QZCustomTabBar : UITabBar
@property (nonatomic, strong) UIButton *centerTabBarBtn;
// 装载Item的容器
@property (nonatomic, strong) NSMutableArray *itemArrays;

// 赋值回调Block
@property (copy, nonatomic) void (^changeActionBlock)(NSInteger selectIndex);

// 发布回调
@property (copy, nonatomic) void (^releaseButtonActionBlock)(void);
//@property (strong, nonatomic) UIButton *centerTabBarBtn;


// 初始化一个按钮并且设置回调Block
+ (instancetype)tabBarFrame:(CGRect)frame andTitles:(NSArray *)titles selectIndex:(NSInteger)index changeItemBlock:(void(^)(NSInteger selectIndex))changeItemBlock;

// 设置默认选择ID
- (void)setDefautSelectIndex:(NSInteger)defautIndex;


- (void)tabBarMessageValueWithIndex:(NSInteger)index value:(NSInteger)value;
- (void)tabBarDotWithIndex:(NSInteger)index isShow:(BOOL)isShow;
@end

NS_ASSUME_NONNULL_END
